package com.example.othree.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.othree.entity.Drone;
import com.example.othree.entity.PollutionHistoryDataJjjSites;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zogran
 * @since 2024-11-12
 */
public interface PollutionHistoryDataJjjSitesMapper extends BaseMapper<PollutionHistoryDataJjjSites> {
    IPage PageList(IPage<PollutionHistoryDataJjjSites> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    IPage pollutionPageList(IPage<HashMap<String, String>> page,
                            String[] cities,
                            String[] elements,
                            String startTime, String endTime);
    ArrayList<PollutionHistoryDataJjjSites> pollutionListByDate(String[] cities,
                                                                String element,
                                                                String startTime, String endTime);
    List<HashMap<String, String>> pollutionForSiteByEvery(String startTime, String endTime,
                                                          String element, String[] cities);
    List<HashMap<String, String>> pollutionAnalyzeDataByTime(String startTime, String endTime, String[] stations);
}
